<%@ include file="/includes/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Login Admin</title>
<!-- Le styles -->
<link href="<c:url value="/styles/bootstrap.min.css"/>" rel="stylesheet" />
<link
	href="<c:url value="/styles/custom-theme/jquery-ui-1.8.22.custom.css"/>"
	rel="stylesheet" type="text/css" />
<style type="text/css">
      body {
        padding-top: 40px;
        padding-bottom: 40px;
        background-color: #f5f5f5;
      }

      .form-signin {
        max-width: 300px;
        padding: 19px 29px 29px;
        margin: 0 auto 20px;
        background-color: #fff;
        border: 1px solid #e5e5e5;
        -webkit-border-radius: 5px;
           -moz-border-radius: 5px;
                border-radius: 5px;
        -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.05);
           -moz-box-shadow: 0 1px 2px rgba(0,0,0,.05);
                box-shadow: 0 1px 2px rgba(0,0,0,.05);
      }
      .form-signin .form-signin-heading,
      .form-signin .checkbox {
        margin-bottom: 10px;
      }
      .form-signin input[type="text"],
      .form-signin input[type="password"] {
        font-size: 16px;
        height: auto;
        margin-bottom: 15px;
        padding: 7px 9px;
      }

    </style>
</head>
<body>

	<div class="container">
		<form class="form-signin"
			action="<c:url value='/j_spring_security_check'/>"  method="post">
			<h2 class="form-signin-heading">Please sign in</h2>
			<c:if test="${not empty param.error}">
				<div class="well">
					<c:set var="msg" value="${SPRING_SECURITY_LAST_EXCEPTION.message}"></c:set>
					<c:choose>
						<c:when test="${msg == 'Bad credentials'}">
						Sorry ,we couldn't verify your login or password
					</c:when>
						<c:otherwise>
						${msg}
					</c:otherwise>
					</c:choose>
				</div>
			</c:if>
			<input type="text" class="input-block-level" name="j_username"
				placeholder="Username"
				value='<c:if test="${not empty param.login_error}"><c:out value="${SPRING_SECURITY_LAST_USERNAME}"/></c:if>'>
			<input type="password" class="input-block-level" name="j_password"
				placeholder="Password">
			<button class="btn btn-large btn-primary" type="submit">Sign
				in</button>
		</form>
		<hr />
		<footer>
		<p>&copy; Company 2013</p>
		</footer>

	</div>
	<!-- /container -->


	<c:url value="" />
	<script src="<c:url value="/scripts/jquery-1.8.3.min.js"/>" type="text/javascript"></script>
	<script src="<c:url value="/scripts/jquery-ui-1.8.22.custom.min.js"/>"
		type="text/javascript"></script>
	<script src="<c:url value="/scripts/jquery.livequery.min.js"/>"
		type="text/javascript"></script>
	<script src="<c:url value="/scripts/bootstrap.min.js"/>"
		type="text/javascript"></script>

</body>
</html>